package com.baselibrary.libs.Utils.netUtils.NoHttp.queue;

/**
 * Created by Administrator 于萌萌
 * 创建日期: 17:46 . 2017年01月05日
 * 描述:
 * <p>
 * <p>
 * 备注:
 */

public class Messages<T,Param, Update, Result> {
   private Param mParam;
   private T mT;

    private Update mUpdate;

    private Result mResult;
    YolandaLinkedQueue queue;
    public Messages(T t,Param param, Update update, Result result,YolandaLinkedQueue<T,Param, Update, Result> queue) {
        mT = t;
        mParam = param;
        mUpdate = update;
        mResult = result;
        this.queue = queue;
    }

    public Param getParam() {
        return mParam;
    }

    public void setParam(Param param) {
        mParam = param;
    }

    public Update getUpdate() {
        return mUpdate;
    }

    public void setUpdate(Update update) {
        mUpdate = update;
    }

    public Result getResult() {
        return mResult;
    }

    public void setResult(Result result) {
        mResult = result;
    }

    public void onResult(){
        queue.getResult(mT,getResult());
    }
    public void onUpData(){
        queue.getUpData(mT, getUpdate());
    }
    public void onParam(){
        queue.getParam(mT,getParam());
    }
    public void onStart(){
        queue.getStart(mT,getResult());
    }


}
